PowerTCP Mail for .NET
GetCharCount(Byte[],Int32,Int32) Method




The byte array to decode.
The index of the first byte in bytes to decode.
The number of bytes to decode.
Calculates the number of characters that would result from decoding a specified range of elements in a byte array.
Syntax
Public Overloads Overrides Function GetCharCount( _
   ByVal bytes() As Byte, _
   ByVal index As Integer, _
   ByVal count As Integer _
) As Integer
Dim instance As ImapUTF7
Dim bytes() As Byte
Dim index As Integer
Dim count As Integer
Dim value As Integer
 
value = instance.GetCharCount(bytes, index, count)
public override int GetCharCount( 
   byte[] bytes,
   int index,
   int count
)
public: int GetCharCount( 
   byte[]* bytes,
   int index,
   int count
) override 
public:
int GetCharCount( 
   array<byte>^ bytes,
   int index,
   int count
) override 

Parameters

bytes
The byte array to decode.
index
The index of the first byte in bytes to decode.
count
The number of bytes to decode.

Return Value

The number of characters that would result from decoding the specified range of elements in bytes.
Exceptions
ExceptionDescription
System.ArgumentNullExceptionbytes is a null reference.
System.ArgumentOutOfRangeExceptionindex and count do not denote a valid range in bytes.
Remarks
Use GetCharCount(Byte[],Int32,Int32) to calculate exactly, or GetMaxCharCount to calculate at most, the array size required by GetChars(Byte[],Int32,Int32,Char[],Int32) to store decoded bytes.
See Also

Reference

ImapUTF7 Class
ImapUTF7 Members
Overload List


PowerTCP Mail for .NET Documentation Version 4.3
© 2018 Dart Communications. All Rights Reserved.
Send comments on this topic